home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bchelp10.zip / TI721.ASC < prev    next >
Text File  |  1991-09-18  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Borland C++                            NUMBER  :  721
  9.   VERSION  :  2.0
  10.        OS  :  DOS
  11.      DATE  :  September 18, 1991                       PAGE  :  1/1
  12.  
  13.     TITLE  :  Biggest Source File that BC++ Can Compile?
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.   There's no easy measure of the size of a file that can be
  22.   compiled by BC++; it's more a function of complexity: large
  23.   switch statements, deeply nested ors, ifs, whiles, etc. take
  24.   up more memory.
  25.  
  26.   So if you're running out of memory in a compile, simplify.  And
  27.   compilation is basically done function by function, so shorter
  28.   files won't help much.  It's the complexity within a function
  29.   that will make the compiler hit its limits.
  30.  
  31.   If you are developing Windows applications, there are lots of
  32.   ways to make your 'winproc' smaller.  One of the best is to
  33.   ignore the usual programming conventions that have grown up
  34.   around windows and do it right.  For a small example of that
  35.   sort of thing, take a look at the TODO demo that comes with BC.
  36.   There are no deeply nested switch statements; not only does
  37.   this effectively solve the problem but it has the added effect
  38.   of making code readable.
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.